package model;

import java.util.Date;
import java.util.List;

/**
 * Created by root on 17-6-14.
 */
public class CClass {
    public int starttime_h, endtime_h;
    public Date date;
    public int teacherid;
    public List<Integer> studentsid;

    public CClass() {

    }
    public CClass(CClass copy) {
        if (copy != null)
            this.starttime_h = copy.starttime_h;
        this.endtime_h = copy.endtime_h;
    }


    public CClass(int starttime_h, int endtime_h) {
        this.starttime_h = starttime_h;
        this.endtime_h = endtime_h;
    }

    public int getHours() {
        return endtime_h - starttime_h;
    }


}
